import request from '@/utils/request'

export function getBlogCategoryList(params) {
  return request({
    url: process.env.ADMIN_API + '/blogCategory/getList',
    method: 'post',
    data: params
  })
}

export function addBlogCategory(params) {
  return request({
    url: process.env.ADMIN_API + '/blogCategory/add',
    method: 'post',
    data: params
  })
}

export function editBlogCategory(params) {
  return request({
    url: process.env.ADMIN_API + '/blogCategory/edit',
    method: 'post',
    data: params
  })
}
export function deleteBlogCategoryById(id) {
  return request({
    url: process.env.ADMIN_API + '/blogCategory/'+id,
    method: 'delete'
  })
}




export function deleteBatchBlogCategory(params) {
  return request({
    url: process.env.ADMIN_API + '/blogCategory/deleteBatch/'+params,
    method: 'delete',
  })
}

export function stickBlogCategory(params) {
  return request({
    url: process.env.ADMIN_API + '/blogCategory/stick',
    method: 'post',
    data: params
  })
}

export function blogCategoryByClickCount(params) {
  return request({
    url: process.env.ADMIN_API + '/blogCategory/blogCategoryByClickCount',
    method: 'post',
    params
  })
}

export function blogCategoryByCite(params) {
  return request({
    url: process.env.ADMIN_API + '/blogCategory/blogCategoryByCite',
    method: 'post',
    params
  })
}
